<?php

namespace model;

class dbConnect {

    private $databaseServerIP = "195.128.174.38";
    private $databaseServerDb = "wse336700_1";
    private $databaseServerUsername = "wse336700";
    private $databaseServerPassword = "8nq8cf4963";
    private $connect ;

    public function connect()     {

        $this->connect = mysql_connect($this->databaseServerIP, $this->databaseServerUsername, $this->databaseServerPassword);
        if (!$this->connect) {
            die('Could not connect: ' . mysql_error());
        }
        mysql_select_db($this->databaseServerDb, $this->connect) or die('Could not select database.');
    }

    public function close()     {
        mysql_close($this->connect);
    }




}

